﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CrystalDecisions.CrystalReports.Engine;
using QLBH.Reports.Reports;

namespace QLBH.Reports
{
    public static class ReportLoader
    {
        public static ReportDocument GetReport(eReportTypes rpType)
        {            
            switch(rpType)
            {
                case eReportTypes.RP_MUAHANGCHITIET:
                    return new MuaHangCTReport();
                case eReportTypes.RP_PHIEUNHAPHANG:
                    return new PhieuNhapKhoReport();
                default:
                    return null;
            }
        }
    }
    public enum eReportTypes
    {
        RP_MUAHANGCHITIET,
        RP_PHIEUNHAPHANG
    };
}
